package com.binary.coder.gift.core.common.constant;

/**
 * @author atao
 * @version 1.0.0
 * @ClassName ElementType.java
 * @Description 请帖设计元素类型枚举
 * @createTime 2024年06月21日 17:32:00
 */
public enum ElementType {

    /**
     * 请帖设计元素类型枚举
     */
    TEXT("text","文本",false),
    IMAGE("image","图片",true);

    /**
     * 类型码
     */
    private String typeCode;

    /**
     * 类型描述
     */
    private String typeDesc;

    /**
     * 是否需要上传
     */
    private boolean isUpload;

    ElementType(String typeCode, String typeDesc, boolean isUpload) {
        this.typeCode = typeCode;
        this.typeDesc = typeDesc;
        this.isUpload = isUpload;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTypeDesc() {
        return typeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }

    public boolean isUpload() {
        return isUpload;
    }

    public void setUpload(boolean upload) {
        isUpload = upload;
    }
}
